import request from '@/utils/request'

export function getOrderMsg(current, size) {
  return request({
    url: 'api/applet/common/getOrderMsg?current=' + current + '&size=' + size,
    method: 'get'
  })
}

export function getOrderMsgCount() {
  return request({
    url: 'api/applet/common/getOrderMsgCount',
    method: 'get'
  })
}

export function handleOrderMsg(id) {
  return request({
    url: 'api/applet/common/handleOrderMsg?id=' + id,
    method: 'get'
  })
}

export default { getOrderMsg, handleOrderMsg, getOrderMsgCount }
